package com.tzm.springcloud.services.iml;

import com.tzm.springcloud.dao.PaymentDao;
import com.tzm.springcloud.entities.Payment;
import com.tzm.springcloud.services.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
/**
 * @author tzm
 */
@Service
public class PaymentServiceIml implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    public int create(Payment payment)
    {
        return paymentDao.create(payment);

    }
    public Payment getPaymentById(long id)
    {
    return paymentDao.getPaymentById(id);
    }
}
